package homework.entity;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;
import homework.entity.Mypackage;



public class User implements Serializable{
	private String username;
	private String password;
	private String type;
	private List<Mypackage> list = new ArrayList<Mypackage>();
	
	public User(String username, String password,String type) {
		super();
		this.username = username;
		this.password = password;
		this.type = type;
	}
	
	@Override
	public String toString() {
		return "User [username=" + username + ", password=" + password + ", type=" + type + ", list=" + list + "]";
	}
	
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	public String getUsername() {
		return username;
	}
	public void setUsername(String username) {
		this.username = username;
	}
	public String getPassword() {
		return password;
	}
	public void setPassword(String password) {
		this.password = password;
	}
	public List<Mypackage> getList() {
		return list;
	}
	public void setList(List<Mypackage> list) {
		this.list = list;
	}
	public void setMypackage(Mypackage pa) {
		list.add(pa);
	}
	

}
